package org.linlinjava.litemall.core.util;

/**
 * @author wj
 * @date 2021/9/28 18:04
 */
public class InventoryStringAssembleUtil {


    public static String assembleKey(Integer storeId,Integer type,Integer inventoryType,Integer goodsId,Integer specId){
        StringBuffer buffer=new StringBuffer();
        buffer.append(storeId).append("-").append(type).append("-").append(inventoryType).append("-").append(goodsId);
        if(specId!=null){
            buffer.append("-").append(specId);
        }
        return buffer.toString();
    }
}
